package org.tech4j.common.zip.api;

/**
 * @program: tech4j-common
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/3 20:23
 **/
public class DefaultCompressData implements CompressData {

    private int length;

    private byte[] compressedData;

    public DefaultCompressData() {
    }

    public DefaultCompressData(int length, byte[] compressedData) {
        this.length = length;
        this.compressedData = compressedData;
    }

    @Override
    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    @Override
    public byte[] getCompressedData() {
        return compressedData;
    }

    public void setCompressedData(byte[] compressedData) {
        this.compressedData = compressedData;
    }
}
